local MenuUtils = {}
function MenuUtils:new()
   local menuUtils = {}

   function menuUtils:createButton(x, y, text, callback)
      local playBtn = widget.newButton{
         label = text,
         labelColor = {
            default = {255},
            over = {128}
         },
         defaultFile = "resources/sprites/button.png",
         overFile = "resources/sprites/button-over.png",
         width = X*0.35, height = Y*0.1,
         onRelease = callback
      }
      playBtn.x = x
      playBtn.y = y

      return playBtn
   end

   return menuUtils
end

return MenuUtils